using System;
using System.Collections.Generic;
using System.Text;

namespace EZCRS.HCMS.Entity
{
    public class hfg_creditcard
    {
        private int? _id;
        private int? _uid;
        private string _creditcardtype = String.Empty;
        private string _creditcardno = String.Empty;
        private DateTime? _expirationdate;
        private string _cardname = String.Empty;
        private int? _crank;
        private DateTime? _indate;

        public hfg_creditcard()
        {
        }

        
        //protected void LoadFromReader(SqlDataReader reader)
        //{
        //    if (reader != null && !reader.IsClosed)
        //    {
        //        _id = reader.GetInt32(0);
        //        if (!reader.IsDBNull(1)) _uid = reader.GetInt32(1);
        //        if (!reader.IsDBNull(2)) _creditcardtype = reader.GetString(2);
        //        if (!reader.IsDBNull(3)) _creditcardno = reader.GetString(3);
        //        if (!reader.IsDBNull(4)) _expirationdate = reader.GetDateTime(4);
        //        if (!reader.IsDBNull(5)) _cardname = reader.GetString(5);
        //        if (!reader.IsDBNull(6)) _crank = reader.GetInt32(6);
        //        if (!reader.IsDBNull(7)) _indate = reader.GetDateTime(7);
        //    }
        //}

        
        #region Public Properties
        public int? Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int? uid
        {
            get { return _uid; }
            set { _uid = value; }
        }

        public string creditcardtype
        {
            get { return _creditcardtype; }
            set { _creditcardtype = value; }
        }

        public string creditcardno
        {
            get { return _creditcardno; }
            set { _creditcardno = value; }
        }

        public DateTime? expirationdate
        {
            get { return _expirationdate; }
            set { _expirationdate = value; }
        }

        public string cardname
        {
            get { return _cardname; }
            set { _cardname = value; }
        }

        public int? crank
        {
            get { return _crank; }
            set { _crank = value; }
        }

        public DateTime? indate
        {
            get { return _indate; }
            set { _indate = value; }
        }
        #endregion

       
    }
}
